.logoContainer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hospital_logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.hospital_logo_Image {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.hospital_logoText {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hospital_name_Ch {
    color: #1daba6;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.hospital_name_En {
    color: #2b4d4f;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
}

.searchBlank {
    flex: 1;
    max-width: 25rem;
    margin: 0 2rem;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.searchBlank:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.searchBlank .image_2 {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.8rem;
    opacity: 0.6;
}

.borderless-input {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 0.9rem;
    width: 100%;
    color: #333;
}

.borderless-input::placeholder {
    color: #999;
}

.doctorInfoContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    min-width: 250px;
    margin-right: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctorInfoContainer:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.doctorName {
    font-size: 1rem;
    font-weight: 600;
    color: #1daba6;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.doctorName::before {
    content: '👨‍⚕️';
    font-size: 1.2rem;
}

#doctor-dept {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* 非登入状态样式 */
.doctorInfoContainer .doctorName:only-child {
    color: #dc3545;
    font-style: italic;
}

.doctorInfoContainer .doctorName:only-child::before {
    content: '⚠️';
}

/* 调整布局比例 */
.hospital_logo {
    flex: 0 0 200px;
}

.searchBlank {
    flex: 0 0 auto;
}

.doctorInfoContainer {
    flex: 0 0 300px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .searchBlank {
        max-width: 20rem;
    }
    
    .doctorInfoContainer {
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .searchBlank {
        max-width: 15rem;
    }
    
    .hospital_name_En {
        display: none;
    }
}

@media (max-width: 768px) {
    .logoContainer {
        padding: 0.5rem 1rem;
    }
    
    .hospital_logo_Image {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .hospital_name_Ch {
        font-size: 1rem;
    }
    
    .searchBlank {
        max-width: 20rem;
        margin: 0 1rem;
    }
}

.doctor-modal-content {
    width: fit-content;
    min-width: 400px;
    max-width: 500px;
    /*padding: 25px;*/
    margin: 15vh auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .doctor-modal-content {
    transform: scale(1);
    opacity: 1;
}

.doctor-header {
    position: relative;
    /*margin: -25px -25px 20px -25px;*/
    padding: 30px;
    background: linear-gradient(135deg, #1daba6 0%, #15827e 100%);
    /*border-radius: 15px 15px 0 0;*/
    color: white;
    text-align: center;
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseAvatar 2s infinite;
}

@keyframes pulseAvatar {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.doctor-avatar i {
    font-size: 45px;
    color: white;
}

.doctor-header h2 {
    font-size: 2em;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.doctor-title {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0 0;
}

.doctor-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
}

.detail-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.detail-item:nth-child(1) { animation-delay: 0.1s; }
.detail-item:nth-child(2) { animation-delay: 0.2s; }
.detail-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item i {
    font-size: 1.4em;
    color: #1daba6;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(29, 171, 166, 0.1);
    border-radius: 8px;
    padding: 8px;
}

.detail-text {
    flex: 1;
    text-align: left;
}

.detail-text label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.detail-text span {
    display: block;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.logout-btn {
    width: auto;
    margin: 20px auto 0;
    padding: 12px 40px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.logout-btn i {
    font-size: 1.2em;
    animation: slideRight 1s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: white;
    transform: rotate(90deg);
}

/* 添加模态框背景动画 */
.modal {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

.doctor-info-content {
    width: 100%;
    padding-bottom: 20px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    background: rgba(0, 0, 0, 0.2);
}

.doctor-modal {
    background: white;
    width: 320px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal-overlay.show .doctor-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.doctor-header {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1daba6 0%, #15827e 100%);
    color: white;
    text-align: center;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseAvatar 2s infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes pulseAvatar {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1); }
}

.doctor-avatar i {
    font-size: 35px;
    color: white;
}

.doctor-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doctor-title {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.doctor-content {
    padding: 20px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.info-row .info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInRight 0.5s forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }

.info-item:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.info-item i {
    width: 36px;
    height: 36px;
    background: rgba(29, 171, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1daba6;
    font-size: 18px;
    transition: all 0.3s ease;
}

.info-item:hover i {
    transform: rotate(360deg);
    background: rgba(29, 171, 166, 0.2);
}

.info-text {
    flex: 1;
}

.info-text label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.info-text span {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 0.3s 0.4s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.logout-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.logout-btn:hover i {
    transform: translateX(3px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}